<?php
/**
 * 我的主页
 */
require_once dirname(__DIR__)."/login_filter.php";
use app\cls\tom\Response;
use app\cls\tom\SysResource;
use app\cls\tom\Tools;
use app\model\Users;

$id=$_POST['id'];
$video_uuid=$_POST['uuid'];
if(empty($id) || empty($video_uuid)){
    Response::output(-1,"缺少参数");
}
$uuid=$Auth['uuid'];
//实例化数据库
$db = SysResource::getDB(true);
$Users = new Users($db);
//删除用户的作品
$update_autograph=$Users->update_material($id,$video_uuid);
//再去删除别人的点赞
$result=$Users->del_zan($id,$video_uuid,$uuid);
if($result){

    Response::output(0,"修改成功");
}else{
    Response::output(-1,"修改失败");
}